<?php
namespace App\Domain;
use App\Model\Zlive as Model_Zlive;

class Zlive {
	
	public function getLivelist($p, $country='',$language='',$uid='') {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->getLivelist($p, $country,$language,$uid);
		return $rs;
	}
	
	public function getAttentionLivelist($p, $uid) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->getAttentionLivelist($p, $uid);
		return $rs;
	}
	
	public function getClassLive($liveclassid,$p){
        $rs = array();

        $model = new Model_Zlive();
        $rs = $model->getClassLive($liveclassid,$p);
                
        return $rs;
    }

	
	public function checkBan($uid) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->checkBan($uid);
		return $rs;
	}

	public function createRoom($uid,$data) {
		$rs = array();
		$model = new Model_Zlive();
		$rs = $model->createRoom($uid,$data);
		return $rs;
	}
	
	
	public function changeLive($uid,$stream,$status) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->changeLive($uid,$stream,$status);
		return $rs;
	}
	


	public function stopRoom($uid,$stream) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->stopRoom($uid,$stream);
		return $rs;
	}
	
	public function stopInfo($stream) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->stopInfo($stream);
		return $rs;
	}
	
	public function checkLive($uid,$liveuid,$stream) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->checkLive($uid,$liveuid,$stream);
		return $rs;
	}
	
	public function roomCharge($uid,$liveuid,$stream) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->roomCharge($uid,$liveuid,$stream);
		return $rs;
	}
	
	public function getUserCoin($uid) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->getUserCoin($uid);
		return $rs;
	}
	
	public function isZombie($uid) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->isZombie($uid);
		return $rs;
	}
	

	public function getPop($touid) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->getPop($touid);
		return $rs;
	}
	



	
	public function sendGift($uid,$liveuid,$stream,$giftid,$giftcount) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->sendGift($uid,$liveuid,$stream,$giftid,$giftcount);
		return $rs;
	}

	public function sendBarrage($uid,$liveuid,$stream,$giftid,$giftcount,$content) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->sendBarrage($uid,$liveuid,$stream,$giftid,$giftcount,$content);
		return $rs;
	}
	
	public function setAdmin($liveuid,$touid) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->setAdmin($liveuid,$touid);
		return $rs;
	}
	
	public function getAdminList($liveuid) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->getAdminList($liveuid);
		return $rs;
	}
	
	public function getUserHome($uid,$touid) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->getUserHome($uid,$touid);
		return $rs;
	}
    



	public function getVotes($liveuid) {
		$rs = array();

		$model = new Model_Zlive();
		$rs = $model->getVotes($liveuid);
		return $rs;
	}
    
	public function checkShut($uid,$liveuid) {
		$rs = array();
		$model = new Model_Zlive();
		$rs = $model->checkShut($uid,$liveuid);
		return $rs;
	}
    
    public function setShutUp($uid,$liveuid,$touid,$showid) {
		$rs = array();
		$model = new Model_Zlive();
		$rs = $model->setShutUp($uid,$liveuid,$touid,$showid);
		return $rs;
	}

	public function kicking($uid,$liveuid,$touid) {
		$rs = array();
		$model = new Model_Zlive();
		$rs = $model->kicking($uid,$liveuid,$touid);
		return $rs;
	}
    
    public function superStopRoom($uid,$liveuid,$type,$banruleid) {
		$rs = array();
		$model = new Model_Zlive();
		$rs = $model->superStopRoom($uid,$liveuid,$type,$banruleid);
		return $rs;
	}

	public function getContribut($uid,$liveuid,$showid) {
		$rs = array();
		$model = new Model_Zlive();
		$rs = $model->getContribut($uid,$liveuid,$showid);
		return $rs;
	}	
    
	public function checkLiveing($uid,$stream) {
		$rs = array();
		$model = new Model_Zlive();
		$rs = $model->checkLiveing($uid,$stream);
		return $rs;
	}	
    
    public function getLiveInfo($liveuid) {
		$rs = array();
		$model = new Model_Zlive();
		$rs = $model->getLiveInfo($liveuid);
		return $rs;
	}
	
	public function setUserData($uid,$stream) {
		$rs = array();
		$model = new Model_Zlive();
		$rs = $model->setUserData($uid,$stream);
		return $rs;
	}	


}
